﻿@model XPressify.Models.AlbumCreateModel
@using XPressify.Models
@using XPressify.Data.Helpers

@{
    ViewBag.Title = "Create album";
}


@using (Html.BeginForm(Model.ActionName, Model.ControllerName , FormMethod.Post, new { enctype = "multipart/form-data" })) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend style="font-size:x-large;color:#222">Album</legend>

        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
        </div>

        <div class="editor-field">
            @Html.EditorFor(model => model.Description)
        </div>

        <div class="editor-field">
            @Html.EditorFor(model => model.Location)
        </div>

        <div class="editor-field">
            @Html.LabelFor(model => model.PrivacyType) : <br />
            @Html.DropDownListFor(model => model.PrivacyType, new List<SelectListItem> { new SelectListItem { Text = "Everyone", Value = ObjectPrivacy.Everyone.ToString() }, new SelectListItem { Text = "FriendsOfFriends", Value = ObjectPrivacy.FriendsOfFriends.ToString() }, new SelectListItem { Text = "FriendsOnly", Value = ObjectPrivacy.FriendsOnly.ToString() }, new SelectListItem { Text = "Private", Value = ObjectPrivacy.Private.ToString() } })
            @Html.ValidationMessageFor(model => model.PrivacyType)
        </div>

        <div class="editor-field">
            @Html.LabelFor(model => model.MediaType) : <br />
            @Html.DropDownListFor(model => model.MediaType, new List<SelectListItem> { new SelectListItem { Text = "Photo", Value = AlbumMediaType.Photo.ToString() }, new SelectListItem { Text = "Video", Value = AlbumMediaType.Video.ToString() }, new SelectListItem { Text = "Audio", Value = AlbumMediaType.Audio.ToString() }, new SelectListItem { Text = "Document", Value = AlbumMediaType.Document.ToString() }, new SelectListItem { Text = "Mix", Value = AlbumMediaType.Mix.ToString() } })
            @Html.ValidationMessageFor(model => model.MediaType)
        </div>

    </fieldset>
}
